package com.bzframework.pro.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @Author bingzhong
 * @Date 2025/4/10 15:11
 * @Description 校管家校区表
 */
@Table(name = "beiya_campus")
@Getter
@Setter
@Schema(description = "校管家校区表")
@EnableEntityEvent //开启实体类crud事件
public class CampusEntity extends GenericEntity<String> {


    @Column
    @Schema(description = "校区名字")
    private String name;

    @Column
    @Schema(description = "是否是校区 (1是 校区)")
    private Integer iscampus;

    @Column
    @Schema(description = "是否是校区")
    private String dept_id;

}
